package mse.eai.jbpm.sendFriendshipRequest;

import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;

public class PrintRequest implements ActionHandler {

	@Override
	public void execute(ExecutionContext context) throws Exception {

		System.out.println("----------------------------------");
		
		
		int fromId = (Integer)context.getVariable("origUserId");
		int toId = (Integer)context.getVariable("destUserId");
		
		
		
		System.out.println("USER: "+fromId + " WANTS TO BE FRIEND WITH "+toId);
		
		
		
		System.out.println("----------------------------------");
		
		context.leaveNode();
		
		
	}

}
